import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { SpuOrderIncomeStatVo, SpuOrderIncomeStatForm, SpuOrderIncomeStatQuery, SpuOrderIncomeTotalStatVo, SpuOrderIncomeTotalStatQuery, SpuOrderIncomeTotalStatForm } from '@/api/stat/income/types';

export const listSpuOrderIncomeStat = (query?: SpuOrderIncomeStatQuery): AxiosPromise<SpuOrderIncomeStatVo[]> => {
  return request({
    url: '/lawyer/orderStat/spuOrderIncomeStat',
    method: 'get',
    params: query
  });
};

export const getSpuOrderIncomeTotalStat = (query?: SpuOrderIncomeTotalStatQuery): AxiosPromise<SpuOrderIncomeTotalStatVo> => {
  return request({
    url: '/lawyer/orderStat/spuOrderIncomeTotalStatVo',
    method: 'get',
    params: query
  });
};
